 
package com.xbongbong.admin.domain.dao;

import com.xbongbong.admin.domain.entity.RaidersScoreExchangeEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


/**
* @author autoGen
* @time 2019-09-18 13:56:16
*/
@Repository
@Mapper
public interface RaidersScoreExchangeDao {

	 
	Integer insert(RaidersScoreExchangeEntity raidersScoreExchange);
	Integer update(RaidersScoreExchangeEntity raidersScoreExchange);

	void insertBatch(@Param("list") List<RaidersScoreExchangeEntity> raidersScoreExchangeList);
	
	Integer deleteByKey(@Param("key") Long key, @Param("corpid") String corpid);
	RaidersScoreExchangeEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid);
	
	
	List<RaidersScoreExchangeEntity>  findEntitys(@Param("param") Map<String, Object> param);
	Integer getEntitysCount(@Param("param") Map<String, Object> param);

	/**
	 * 通过核销码获取实体
	 *
	 * @param redeemCode 核销码
	 * @return com.xbongbong.admin.domain.entity.RaidersScoreExchangeEntity
	 * @author 徐俊杰
	 * @date 2019/9/21 17:15
	 * @since v1.0
	 */
	RaidersScoreExchangeEntity getByRedeemCode(@Param("redeemCode") String redeemCode);
		
		
 
}